<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>绝对定位</title>
	<style type="text/css">
		*{
			margin: 0px;
			padding: 0px;
		}
		.father{
			margin-left: 100px;
			width: 800px;
			height: 800px;
			background: #272822 url() 0 0 no-repeat;
			position: relative;
		}
		.box{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			color: #fff;
			font-size: 40px;
		}
		.box1{
			background: blue url() 0 0 no-repeat;
			position: absolute;
			top:50px;
			left: 50px;
			z-index: 80;
		}

		.box2{
			position: absolute;
			z-index: 100
		}



	</style>
</head>
<body>
	<div class="father">
		<div class="box box1">
		21

		</div>
		<div class="box box2">
			22
			
		</div>
	</div>
</body>
</html>